package com.drools.drools.chapter7;

import com.drools.drools.BaseTest;
import org.junit.Test;
import org.kie.api.runtime.KieSession;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2019-04-27
 * Time: 11:01
 * Des:
 */
public class RowFlowGroupTest extends BaseTest{

    @Test
    public void rowFlowGrop(){
        KieSession kieSession=this.getKieSessionBySessionName("ruleFlowGroup-rules");

        kieSession.getAgenda().getAgendaGroup("rule-flow-group-1").setFocus();

        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
